import request from '@/utils/request'

// 查询BI标签一级配置表列表
export function selectTableNameList(query) {
  return request({
    url: '/conf/biruletag/selectTableNameList',
    method: 'get',
    params: query
  })
}
// 查询BI标签一级配置表列表
export function listBiruletag(query) {
  return request({
    url: '/conf/biruletag/list',
    method: 'get',
    params: query
  })
}
// 查询BI标签一级配置表详细
export function getBiruletag(id) {
  return request({
    url: '/conf/biruletag/' + id,
    method: 'get'
  })
}

// 新增BI标签一级配置表
export function addBiruletag(data) {
  return request({
    url: '/conf/biruletag',
    method: 'post',
    data: data
  })
}

// 修改BI标签一级配置表
export function updateBiruletag(data) {
  return request({
    url: '/conf/biruletag',
    method: 'put',
    data: data
  })
}
// 修改BI标签一级配置表
export function activeRule(data) {
  return request({
    url: '/conf/biruletag/activeRule',
    method: 'put',
    data: data
  })
}

// 删除BI标签一级配置表
export function delBiruletag(id) {
  return request({
    url: '/conf/biruletag/' + id,
    method: 'delete'
  })
}
